package com.bgs.service.impl;



import com.bgs.entity.User;
import com.bgs.mapper.RecyclingorderMapper;
import com.bgs.service.RecyclingorderService;
import com.bgs.tool.R;
import com.bgs.vo.RecyclingorderVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RecyclingorderServiceImpl implements RecyclingorderService {
    @Autowired
    private RecyclingorderMapper recyclingorderMapper;

    @Override
    public List<RecyclingorderVo> getRecyclingorder(Integer riderId,Integer roType ,Integer id) {
        return recyclingorderMapper.getRecyclingorder(riderId,roType,id);
    }

    @Override
    public List<RecyclingorderVo> getRecyclingorderRoId(Integer roId) {
        return recyclingorderMapper.getRecyclingorderRoId(roId);
    }

    @Override
    public Integer uptRecyclingorderRoId(Integer roId, Integer roType,Integer riderId) {
        return recyclingorderMapper.uptRecyclingorderRoId(roId,roType,riderId);
    }

    @Override
    public User getUserRoId(Integer riderId) {
        return recyclingorderMapper.getUserRoId(riderId);
    }

    @Override
    public List<RecyclingorderVo> getRecyclingorderComplete(Integer riderId) {
        return recyclingorderMapper.getRecyclingorderComplete(riderId);
    }

    @Override
    public List<RecyclingorderVo> getRecyclingorderCompleted(Integer riderId) {
        return recyclingorderMapper.getRecyclingorderCompleted(riderId);
    }

    @Override
    public Integer getRedisRecyclingorder(Integer id) {
        return recyclingorderMapper.getRedisRecyclingorder(id);
    }

    @Override
    public Integer getRiderDistance(Double distance,Integer roId,Integer riderId) {
        return recyclingorderMapper.getRiderDistance(distance,roId,riderId);
    }
}
